<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:t="http://myfaces.apache.org/tomahawk">	
<ui:composition template="/pages/layout/masterLayout.xhtml">
	<ui:define name="tituloPagina">Alterar Notícias</ui:define>
	<ui:define name="conteudo">
		<t:saveState value="#{gerenciaNoticia.noticiaSelecionada}" />
		<div id="alinhamentos">	
			<br/>
			<h1>:: Alteração de notícia ::</h1>
			<h2>Texto publicado</h2>				
			<h:form>
			<div id="labels">
				Texto:
			</div>
			<div id="campos">						
				<h:inputTextarea id="itaTexto" cols="80" rows="5" value="#{gerenciaNoticia.noticiaSelecionada.texto}" required="true" 
					requiredMessage="  O texto é requerido." >
					<f:validateLength maximum="5000" />
					</h:inputTextarea>
					<h:message for="itaTexto"/>	
				<br/>					
			</div>					
			<div id="botao_pequeno4">				
				<h:commandButton value=" Alterar " action="#{gerenciaNoticia.alteraNoticia}" />
				&nbsp;&nbsp;&nbsp;	
				<h:commandButton value=" Voltar " action="voltar" />
				<br />
			</div>	
			</h:form>
		</div>
	</ui:define>
</ui:composition>
</html>